/*    */ package com.zimbra.cs.client.soap;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.DomUtil;
/*    */ import com.zimbra.common.soap.MailConstants;
/*    */ import org.dom4j.DocumentHelper;
/*    */ import org.dom4j.Element;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class LmcGetNoteRequest
/*    */   extends LmcSoapRequest
/*    */ {
/*    */   private String mNoteToGet;
/*    */   
/* 36 */   public void setNoteToGet(String n) { this.mNoteToGet = n; }
/*    */   
/* 38 */   public String getNoteToGet() { return this.mNoteToGet; }
/*    */   
/*    */   protected Element getRequestXML() {
/* 41 */     Element request = DocumentHelper.createElement(MailConstants.GET_NOTE_REQUEST);
/* 42 */     Element note = DomUtil.add(request, "note", "");
/* 43 */     DomUtil.addAttr(note, "id", this.mNoteToGet);
/* 44 */     return request;
/*    */   }
/*    */   
/*    */   protected LmcSoapResponse parseResponseXML(Element responseXML)
/*    */     throws ServiceException
/*    */   {
/* 50 */     LmcGetNoteResponse response = new LmcGetNoteResponse();
/* 51 */     Element noteElem = DomUtil.get(responseXML, "note");
/* 52 */     response.setNote(parseNote(noteElem));
/* 53 */     return response;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/client/soap/LmcGetNoteRequest.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */